<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Edit Student</title>
</head>
<body>
    <h1>Edit Student Information</h1>
    <form method="post">
        <div>
            <label for="Sno">Student Number (Sno):</label>
            <input type="text" id="Sno" name="Sno" value="{{ student.Sno }}" readonly>
        </div>

        <div>
            <label for="Sname">Student Name (Sname):</label>
            <input type="text" id="Sname" name="Sname" value="{{ student.Sname }}" required>
        </div>

        <div>
            <label for="Ssex">Sex (Ssex):</label>
            <input type="text" id="Ssex" name="Ssex" value="{{ student.Ssex }}" required>
        </div>

        <div>
            <label for="Sage">Age (Sage):</label>
            <input type="number" id="Sage" name="Sage" value="{{ student.Sage }}" required>
        </div>

        <div>
            <label for="Dno">Department Number (Dno):</label>
            <input type="text" id="Dno" name="Dno" value="{{ student.Dno }}" required>
        </div>

        <div>
            <label for="Sclass">Class (Sclass):</label>
            <input type="text" id="Sclass" name="Sclass" value="{{ student.Sclass }}">
        </div>

        <div>
            <label for="address">Address:</label>
            <input type="text" id="address" name="address" value="{{ student.address }}">
        </div>

        <div>
            <input type="submit" value="Update Student">
        </div>
    </form>
    <a href="{{ url_for('index') }}">Back to List</a>
</body>
</html>